﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 车位合同信息表
    /// </summary>
    [Table("T_Parking_Sale")]
    public class ParkingSale:BaseEntity
    {
        /// <summary>
        /// 销售Id
        /// </summary>
        [ForeignKey(nameof(ParkingDealId))]
        public int SalesId { get; set; }
        public ParkingDeal ParkingDealId { get; set; }

        /// <summary>
        /// 车位Id
        /// </summary>
        [ForeignKey(nameof(ParkingId))]
        public int Parkingid { get; set; }
        public Material ParkingId { get; set; }

        /// <summary>
        /// 车位购置人
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(100)]
        public string ParkingOwner { get; set; }
    }
}
